package top.noteday.provider.user;

import java.util.List;
import java.util.Date;
import entity.Page;
import entity.result.EntityResult;
import entity.result.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import entity.user.*;

// TODO 修改 path
@FeignClient(value = "kalimdor-apiImpl", path = "/backstage/user", contextId="userService")
public interface UserService {

    /**
     * 查询一个
     */
    @PostMapping(value = "/selectById")
    User selectById(@RequestParam("id") Integer id);

    /**
     * 登录
     */
    @PostMapping(value = "/login")
    EntityResult<UserDto> login(@RequestBody UserVo vo);

    /**
     * 分页查询
     */
    /*
    @PostMapping(value = "/selectUser")
    PageResult<UserDto> selectUser(@RequestBody UserVo userVo);
    */
}
